<html>
<head>
<title>testing ajax</title>
<script type = "text/javascript" src = "ajax.js"></script>
</head>
<script>
function makerequest(){
var request = createrequest();
var url = "simplexml.php";
request.open("GET",url,true);
request.onreadystatechange = updatePage;
request.send(null);
function updatePage(){
	if (request.readyState == 4){
		alert(request.responseText);
		}
}
}
</script>
<body>
<input value = "click me" type = "button" onClick = "makerequest()"/>
</body>
</html>